<%@ page import="javax.swing.*" %>
<%--
  Created by IntelliJ IDEA.
  User: LENOVO
  Date: 2015/8/31
  Time: 17:02
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%
  request.setCharacterEncoding("utf-8");
%>
  <jsp:useBean id="advice" class="com.lihuanyu.upcOA.model.adviceTable"></jsp:useBean>
<jsp:useBean id="getadvie" class="com.lihuanyu.upcOA.service.getadvie"></jsp:useBean>
<jsp:setProperty name="advice" property="*"></jsp:setProperty>
<html>
<head>
    <title></title>
</head>
<body>

  <%
    if(getadvie.dbadvice(advice)==0) {%>
  <script>
    alert("发送失败，请检查网络！！");
    window.history.back();
  </script>
  <%}
  else{
  %>
  <script>
    alert("发送成功，请等待回复！！");
    window.location.href="index.jsp";
  </script>
  <%
  }%>
</body>
</html>
